package com.ruoyi.system.domain.equipment;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import com.ruoyi.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 设备台账对象 equipment_book
 *
 * @author ruoyi
 * @date 2023-03-01
 */
@Data
@ToString
@EqualsAndHashCode
@NoArgsConstructor
@Accessors(chain = true)
@TableName("equipment_book")
public class EquipmentBook implements Serializable {

private static final long serialVersionUID=1L;


        /** 设备台账主键id */
        @TableId(value = "book_id")
        @ApiModelProperty(value = "设备台账主键id")
        private Long bookId;

        /** 设备台账编码 */
        @ApiModelProperty(value = "设备台账编码")
        @Excel(name = "设备台账编码")
        private String bookCode;

        /** 设备台账名称 */
        @ApiModelProperty(value = "设备台账名称")
        @Excel(name = "设备台账名称")
        private String bookName;

        /** 设备类型id */
        @ApiModelProperty(value = "设备类型id")
        @Excel(name = "设备类型id")
        private Long typeId;

        /** 区域id */
        @ApiModelProperty(value = "区域id")
        @Excel(name = "区域id")
        private Long shopId;

        /** 区域名称 */
        @ApiModelProperty(value = "区域名称")
        @Excel(name = "区域名称")
        private String shopName;

        /** 设备型号 */
        @ApiModelProperty(value = "设备型号")
        @Excel(name = "设备型号")
        private String bookModel;

        /** ip */
        @ApiModelProperty(value = "ip")
        @Excel(name = "ip")
        private String ip;

        /** 端口 */
        @ApiModelProperty(value = "端口")
        @Excel(name = "端口")
        private String port;

        /** 创建者 */
        private String createBy;

        /** 创建时间 */
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        private Date createTime;

        /** 更新者 */
        private String updateBy;

        /** 更新时间 */
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        private Date updateTime;

        /** 主要证书编号 */
        @ApiModelProperty(value = "主要证书编号")
        @Excel(name = "主要证书编号")
        private String parameter;

        /** 校准周期 */
        @ApiModelProperty(value = "校准周期")
        private Integer totalPower;

        @ApiModelProperty(value = "设备部件")
        private String bookUnit;

        @ApiModelProperty(value = "出厂日期")
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        private Date productionDate;

        @ApiModelProperty(value = "出厂编号")
        private String productionNumber;

        @ApiModelProperty(value = "校准时间")
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        private Date applyDate;

        @ApiModelProperty(value = "重要度")
        private String importance;

        @ApiModelProperty(value = "最近检定时间")
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        private Date lastDate;

        @ApiModelProperty(value = "生产厂家")
        private String specialBook;

        @ApiModelProperty(value = "备注")
        private String remarks;

        @ApiModelProperty(value = "使用部门id")
        private Long makeDeptId;

        @ApiModelProperty(value = "使用部门名称")
        private String makeDeptName;

        @ApiModelProperty(value = "维护部门id")
        private Long standDeptId;

        @ApiModelProperty(value = "维护部门名称")
        private String standDeptName;

        @ApiModelProperty(value = "提前预警天数")
        private Integer alertDays;
}
